package org.dromara.demo.domain.bo;

import org.dromara.demo.domain.JsDocument;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 文档管理业务对象 js_document
 *
 * @author zhu
 * @date 2025-02-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = JsDocument.class, reverseConvertGenerate = false)
public class JsDocumentBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 文件名
     */
    @NotBlank(message = "文件名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileName;

    /**
     * 文件url
     */
    @NotBlank(message = "文件url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 所属工程
     */
    @NotBlank(message = "所属工程不能为空", groups = { AddGroup.class, EditGroup.class })
    private String project;


}
